package cate.game.role.bag.prop.msg;


import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.prop.PropBag;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "道具 初始化数据 の 返回")
public class PropInitResp implements MsgOutput {

    @NoteField("道具背包的数据")
    public PropBag data;

    public PropInitResp(){}

    public PropInitResp(Role role) {
        this.data = role.getBag().prop;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.PROP_INIT_RESP;
    }
}
